﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<TITLE>添加客户</TITLE> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="${pageContext.request.contextPath }/css/Style.css" type=text/css rel=stylesheet>
<LINK href="${pageContext.request.contextPath }/css/Manage.css" type=text/css rel=stylesheet>

<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.4.4.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath }/js/data/jquery.datepick.css" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath }/js/data/jquery.datepick.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/data/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript">
		
		$(document).ready(function(){
			//使用class属性处理  'yy-mm-dd' 设置格式"yy/mm/dd"
			$('#userEntrytime').datepick({dateFormat: 'yy-mm-dd'}); 
		});
</script>
<META content="MSHTML 6.00.2900.3492" name=GENERATOR>
</HEAD>
<BODY>
	<FORM id=form1 name=form1 action="${pageContext.request.contextPath }/userAdd.action" method=post>
		
		<input type="hidden" name="addAndUpdate" >
		
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15><IMG src="${pageContext.request.contextPath }/images/new_019.jpg"
						border=0></TD>
					<TD width="100%" background="${pageContext.request.contextPath }/images/new_020.jpg"
						height=20></TD>
					<TD width=15><IMG src="${pageContext.request.contextPath }/images/new_021.jpg"
						border=0></TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15 background=${pageContext.request.contextPath }/images/new_022.jpg><IMG
						src="${pageContext.request.contextPath }/images/new_022.jpg" border=0></TD>
					<TD vAlign=top width="100%" bgColor=#ffffff>
						<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
							<TR>
									<TD class=manageHead>当前位置：客户管理 &gt; 添加客户</TD>
							</TR>
							<TR>
								<TD height=2></TD>
							</TR>
						</TABLE>
						
						<TABLE cellSpacing=0 cellPadding=5  border=0>
						  
						    
							<TR>
								<td>员工账号：</td>
								<td>
									<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userNum">
								</td>
								<td>员工姓名：</td>
								<td>
								<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userName">
								</td>
							</TR>
							<TR>
								<td>角色：</td>
								<td>
									<select name="roleId" class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50>
										<option value="">-请选择-</option>
										<c:forEach items="${roleList}" var="role">
											<option value="${role.roleId}" <c:if test="${role.roleId == roleId}">selected</c:if>>
												${role.roleName}
											</option>
										</c:forEach>
									</select>
									
								</td>
								<td>部门：</td>
								<td>
									<select name="departmentId" class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 >
										<option value="">-请选择-</option>
										<c:forEach items="${departmentList}" var="department">
											<option value="${department.departmentId}" <c:if test="${department.departmentId == departmentId}"> selected</c:if>>
												${department.departmentName}
											</option>
										</c:forEach>
									</select>
								</td>
							</TR>
							
							<TR>
								
								
								<td>电话 ：</td>
								<td>
									<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userPhone" >
								</td>
								<td>邮箱 ：</td>
								<td>
									<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userAddress">
								</td>
							</TR>
							
							<TR>
								<td>地址 ：</td>
								<td>
									<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userEmail">
								</td>
								<td>入职日期 ：</td>
								<td>
									<INPUT class=textbox id="userEntrytime" style="WIDTH: 180px" maxLength=50 name="userEntrytime">
								</td>
							</TR>
							<tr>
								
								<td>备注 :</td>
								<td>
								<INPUT class=textbox id=sChannel2 style="WIDTH: 180px" maxLength=50 name="userRemark">
								</td>
							</tr>
							<tr>
								<td rowspan=2>
								<INPUT class=button id=sButton2 type=submit value=" 保存 " name=sButton2>
								</td>
							</tr>
						</TABLE>
						
						
					</TD>
					<TD width=15 background="${pageContext.request.contextPath }/images/new_023.jpg">
					<IMG src="${pageContext.request.contextPath }/images/new_023.jpg" border=0></TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15><IMG src="${pageContext.request.contextPath }/images/new_024.jpg"
						border=0></TD>
					<TD align=middle width="100%"
						background="${pageContext.request.contextPath }/images/new_025.jpg" height=15></TD>
					<TD width=15><IMG src="${pageContext.request.contextPath }/images/new_026.jpg"
						border=0></TD>
				</TR>
			</TBODY>
		</TABLE>
	</FORM>
</BODY>
</HTML>
